package com.app.biz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.biz.mapper.BizSocialElectricityConsumptionFormalMapper;
import com.app.biz.domain.formal.BizSocialElectricityConsumptionFormal;
import com.app.biz.service.IBizSocialElectricityConsumptionFormalService;

/**
 * 全社会用电量Service业务层处理
 * 
 * @author Zhou_S
 * @date 2024-01-03
 */
@Service
public class BizSocialElectricityConsumptionFormalServiceImpl implements IBizSocialElectricityConsumptionFormalService 
{
    @Autowired
    private BizSocialElectricityConsumptionFormalMapper bizSocialElectricityConsumptionFormalMapper;

    /**
     * 查询全社会用电量
     * 
     * @param baseId 全社会用电量主键
     * @return 全社会用电量
     */
    @Override
    public BizSocialElectricityConsumptionFormal selectBizSocialElectricityConsumptionFormalByBaseId(String baseId)
    {
        return bizSocialElectricityConsumptionFormalMapper.selectBizSocialElectricityConsumptionFormalByBaseId(baseId);
    }

    /**
     * 查询全社会用电量列表
     * 
     * @param bizSocialElectricityConsumptionFormal 全社会用电量
     * @return 全社会用电量
     */
    @Override
    public List<BizSocialElectricityConsumptionFormal> selectBizSocialElectricityConsumptionFormalList(BizSocialElectricityConsumptionFormal bizSocialElectricityConsumptionFormal)
    {
        return bizSocialElectricityConsumptionFormalMapper.selectBizSocialElectricityConsumptionFormalList(bizSocialElectricityConsumptionFormal);
    }

    /**
     * 新增全社会用电量
     * 
     * @param bizSocialElectricityConsumptionFormal 全社会用电量
     * @return 结果
     */
    @Override
    public int insertBizSocialElectricityConsumptionFormal(BizSocialElectricityConsumptionFormal bizSocialElectricityConsumptionFormal)
    {
        return bizSocialElectricityConsumptionFormalMapper.insertBizSocialElectricityConsumptionFormal(bizSocialElectricityConsumptionFormal);
    }

    /**
     * 修改全社会用电量
     * 
     * @param bizSocialElectricityConsumptionFormal 全社会用电量
     * @return 结果
     */
    @Override
    public int updateBizSocialElectricityConsumptionFormal(BizSocialElectricityConsumptionFormal bizSocialElectricityConsumptionFormal)
    {
        return bizSocialElectricityConsumptionFormalMapper.updateBizSocialElectricityConsumptionFormal(bizSocialElectricityConsumptionFormal);
    }

    /**
     * 批量删除全社会用电量
     * 
     * @param baseIds 需要删除的全社会用电量主键
     * @return 结果
     */
    @Override
    public int deleteBizSocialElectricityConsumptionFormalByBaseIds(String[] baseIds)
    {
        return bizSocialElectricityConsumptionFormalMapper.deleteBizSocialElectricityConsumptionFormalByBaseIds(baseIds);
    }

    /**
     * 删除全社会用电量信息
     * 
     * @param baseId 全社会用电量主键
     * @return 结果
     */
    @Override
    public int deleteBizSocialElectricityConsumptionFormalByBaseId(String baseId)
    {
        return bizSocialElectricityConsumptionFormalMapper.deleteBizSocialElectricityConsumptionFormalByBaseId(baseId);
    }
}
